<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>-CSS层叠性</title>
    <style>
        div {
            color: red;
            font-size: 12px;
        }

        div {
            color: pink;
        }

        /* 原则：样式冲突，就近原则 */
    </style>
</head>

<body>
    <div>中秋快乐！</div>
</body>

</html>